package com.yami.shop.common.config;

/**
 * nameserver用;分割
 * 同步消息，如果两次
 * @author FrozenWatermelon
 * @date 2021/3/25
 */
public class RocketMqConstant {

    // 延迟消息 1s 5s 10s 30s 1m 2m 3m 4m 5m 6m 7m 8m 9m 10m 20m 30m 1h 2h 1d(1-19)

    /**
     * 取消订单时间，实际上30分钟
     */
    public static final int CANCEL_ORDER_DELAY_LEVEL = 14;

    /**
     * 默认发送消息超时时间
     */
    public static final long TIMEOUT = 3000;

    /**
     * 库存退还发送消息超时时间
     */
    public static final long TIMEOUT_STOCK = 1000;


    /**
     * 库存解锁topic
     */
    public static final String STOCK_UNLOCK_TOPIC = "stock-unlock-topic";

    /**
     * 订单取消
     */
    public static final String ORDER_CANCEL_TOPIC = "order-cancel-topic";

    /**
     * 订单支付成功
     */
    public static final String ORDER_NOTIFY_TOPIC = "order-notify-topic";

    /**
     * 订单支付成功 通知库存服务
     */
    public static final String ORDER_NOTIFY_STOCK_TOPIC = "order-notify-stock-topic";

    /**
     * 盲盒购买记录通知
     */
    public static final String MYSTERY_RECORD_STOCK_TOPIC = "mystery-record-stock-topic";
    
    /**
     * 专题状态修改
     */
    public static final String MYSTERY_SUBJECT_STATUS_TOPIC = "mystery-subject-status-topic";
    
    /**
     * 商品搜索topic
     */
    public static final String CANAL_TOPIC = "canal-topic";
    
    
    /**
     * 下单修改个人持仓
     */
    public static final String ORDER_NOTIFY_PERSONNFT = "order-notify-personnft";

    /**
     * 转移铸币
     */
    public static final String NFT_NOTIFY_SHIFT = "nft-notify-shift";

    /**
     * 铸币
     */
    public static final String NFT_MINT_SHIFT = "nft-mint-shift";

    /**
     * 追加铸币
     */
    public static final String NFT_ADDTOMINT_SHIFT = "nft-addtomint-shift";
    
    /**
     * 转移铸币自调
     */
    public static final String NFT_NOTIFY_SHIFT_SELF = "nft-notify-shift-self";

    /**
     * 预售商品通知
     */
    public static final String PRODUCT_DAWINFORM_TOPIC = "product-dawInform-topic";

    public static final String PRODUCT_DAWSTATUS_TOPIC = "product-dawStatus-topic";

    public static final String NFT_NOTIFY_SHIFT_ERROR = "nft-mint-shift-error";

    /**
     * 通知充值
     */
    public static final String NFT_RECHARGE_ORDER_TOPIC = "nft-recharge-order-topic";
    /**
     * 转给他人资产
     */
    public static final String NFT_OTHER_SHIFT = "nft-other-shift";
    /**
     * 转出商城
     */
    public static final String NFT_OUT_SHIFT = "nft-out-shift";
    /**
     * 转入商城
     */
    public static final String NFT_Into_SHIFT = "nft-into-shift";
    /**
     * 转增申请处理过期
     */
    public static final String NFT_OTHER_SHIFT_EXPIRE = "nft-other-shift-expire";

    /**
     *  摇号保持异步成交
     */
    public static final String DELIVERYCARD_TOPIC = "deliverycard-topic";
}
